<template>
	<view class="wapper">
		<avatar
		       selWidth="200px" selHeight="400upx" @upload="myUpload" :avatarSrc="url"
		       avatarStyle=" ">
		</avatar>
	</view>

</template>

<script>
	 import avatar from "../../components/yq-avatar/yq-avatar.vue";
	    export default {
	        data() {
	            return {
	                url: "../../static/logo.png"
	            }
	        },
	        methods: {
	            myUpload(rsp) {
	                // this.url = rsp.path; //更新头像方式一
	                rsp.avatar.imgSrc = rsp.path; //更新头像方式二
	            }
	        },
	        components: {
	            avatar
	        }
	    }
</script>

<style>
.wapper{
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: #000000;
}
</style>
